package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 路条人/合作方居间协议对象 erp_survey_referee_agreement_info
 * @author wutao
 * @date 2024-05-24
 */
@TableName ("erp_survey_referee_agreement_info")
@ApiModel (value = "erp_survey_referee_agreement_info对象", description = "路条人/合作方居间协议")
@Data
public class SurveyRefereeAgreementEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 路条人Id
     */
    @ApiModelProperty ("路条人Id")
    @TableField ("referee_id")
    @Excel (name = "路条人Id")
    private String refereeId;

    /**
     * 签订合同主体
     */
    @ApiModelProperty ("签订合同主体")
    @TableField ("signing_entity")
    @Excel (name = "签订合同主体")
    private String signingEntity;

    /**
     * 付款方式
     */
    @ApiModelProperty ("付款方式")
    @TableField ("pay_type")
    @Excel (name = "付款方式")
    private String payType;

    /**
     * 是否在用
     */
    @ApiModelProperty ("是否在用")
    @TableField ("is_used")
    @Excel (name = "是否在用")
    private Integer isUsed;

    @TableField(exist = false)
    private List<FileEntity> fileEntities;

    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "refereeId", getRefereeId () )
                .append ( "signingEntity", getSigningEntity () )
                .append ( "payType", getPayType () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
